package kk.yiyi.safedesign.mine;

import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import kk.yiyi.safedesign.R;
import kk.yiyi.safedesign.base.Constants;
import kk.yiyi.safedesign.base.SharePresenterUtils;
import kk.yiyi.safedesign.databinding.MineFragmentBinding;


public class MineFragment extends Fragment {
    private static MineFragment mInstance;
    private MineFragmentBinding mineFragmentBinding;
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        mineFragmentBinding=MineFragmentBinding.inflate(inflater,container,false);
        mineFragmentBinding.mineName.setText("Hi,"+ SharePresenterUtils.getData(getActivity(),Constants.TABLE,"user"));
        return mineFragmentBinding.getRoot();
    }
    public static MineFragment getInstance(){
        if(mInstance == null){
            mInstance = new MineFragment();
        }
        return mInstance;
    }


}
